package com.usns;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class UnisenseActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button exit = (Button) findViewById(R.id.ExitButton);
        exit.setOnClickListener(new Button.OnClickListener(){
        	public void onClick(View arg){
        		finish();
        	}
        });
        
        Button login = (Button) findViewById(R.id.LoginButton);
        login.setOnClickListener(new Button.OnClickListener(){
        	public void onClick(View arg){
        		Intent intent = new Intent(UnisenseActivity.this, OauthActivity.class);
        		startActivity(intent);
        	}
        });
        
        Button config = (Button) findViewById(R.id.ConfigButton);
        config.setOnClickListener(new Button.OnClickListener(){
        	public void onClick(View arg){
        		Intent intent = new Intent(UnisenseActivity.this, ConfigActivity.class);
        		startActivity(intent);
        	}
        });
        
        
    }
}